﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true" CodeBehind="TrainingDetail.aspx.cs" Inherits="badminton.Pages.TrainingDetail" %>

<%@ Register    Assembly="AjaxControlToolkit"    Namespace="AjaxControlToolkit"   TagPrefix="ajaxToolkit" %>
<%@ Register assembly="badminton" namespace="badminton.bdmControls" tagprefix="bdmc" %>
<%@ Register Src="~/Controls/HallPics.ascx" TagName="HallPics" TagPrefix="bdmc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        /* Accordion */
        .accordionHeader
        {
            border: 1px solid #2F4F4F;
            color: white;
            background-color: #2E4d7B;
	        font-family: Arial, Sans-Serif;
	        font-size: 12px;
	        font-weight: bold;
            padding: 5px;
            margin-top: 5px;
            cursor: pointer;
        }

        #master_content .accordionHeader a
        {
	        color: #FFFFFF;
	        background: none;
	        text-decoration: none;
        }

        #master_content .accordionHeader a:hover
        {
	        background: none;
	        text-decoration: underline;
        }

        .accordionHeaderSelected
        {
            border: 1px solid #2F4F4F;
            color: white;
            background-color: #5078B3;
	        font-family: Arial, Sans-Serif;
	        font-size: 12px;
	        font-weight: bold;
            padding: 5px;
            margin-top: 5px;
            cursor: pointer;
        }

        #master_content .accordionHeaderSelected a
        {
	        color: #FFFFFF;
	        background: none;
	        text-decoration: none;
        }

        #master_content .accordionHeaderSelected a:hover
        {
	        background: none;
	        text-decoration: underline;
        }

        .accordionContent
        {
            background-color: #D3DEEF;
            border: 1px dashed #2F4F4F;
            border-top: none;
            padding: 5px;
            padding-top: 10px;
        }
        
        td
        {
        	vertical-align:top;
        }

    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
    		<td width="200px">
                <table border="0" cellspacing="0" cellpadding="2" width="100%">
                    <tr>
                        <td><asp:LinkButton ID="LinkButton1" runat="server" oncommand="OnChangeTrainLevel" 
                                CommandName="cityArea">按城区</asp:LinkButton> &nbsp;
                            <asp:LinkButton ID="LinkButton2" runat="server" oncommand="OnChangeTrainLevel" 
                                CommandName="hall">按球馆</asp:LinkButton>
                            <asp:Label ID="LabelTrainingLevel"   runat="server" Text="city" Visible="False"></asp:Label>
                        </td>
                        
                    </tr>
                    <tr>
                     <td valign="top">
                        <ajaxtoolkit:accordion ID="MyAccordion" runat="server" SelectedIndex="0"
                            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
                            TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" 
                             SuppressHeaderPostbacks="true">

                        </ajaxtoolkit:accordion>
                        <br/><hr />
                     </td>
                    </tr>
                    <tr>
                     <td valign="bottom">
                        <bdmc:HallPics runat="server" />
                     </td>
                    </tr>
                </table>
            </td>
        <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
    	        <tr>
    		        <td ><asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td>
    	        </tr>
    	        <tr>
    		        <td align="center"><a name="top" id="cx1"/>
                    <h4><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></h4>
                    </td>
    	        </tr>
    	        <tr>
    		        <td align="center"><a href="#cx1">培训特色</a> | <a href="#cx2">课程说明</a> | <a href="#cx3">费用详情</a> | <a
                                                href="#cx4">注意事项</a>
                                                </td>
    	        </tr>
                    <tr>
                    	<td height="20px" class="title">培训特色</td>
                    </tr>
    	        <tr>
    		        <td><a name="cx1" id="A1"/>
                    <bdmc:HtmlEditorNoBottom ID="EditorPXTS" runat="server" Height="100%" />
                    </td>
    	        </tr>
                    <tr>
                    	<td height="20px" class="title">课程说明</td>
                    </tr>
    	        <tr>
    		        <td><a name="cx2" id="A2"/>
                        <asp:Repeater  ID="Repeter1" runat="server">
                                <HeaderTemplate>
                                  <table width="100%">
                                </HeaderTemplate>

                                <ItemTemplate>
                                  <tr id="Tr2" runat="server">
                                    <td >
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("name") %>'></asp:Label>
                                    </td>
                                    <td >
                                        <asp:Label ID="Label4" runat="server" Text='<%# GetTime(Eval("id")) %>'></asp:Label>
                                    </td>
                                  </tr>
                                  <tr>
                                  <td>
                                  <asp:Label ID="Label3" runat="server" Text='<%# Eval("description") %>'></asp:Label>
                                  </td>
                                  <td>
                                      <asp:Image ID="Image1" runat="server" ImageUrl='<%# GetImageURL(Eval("id")) %>'/>
                                  </td>
                                  </tr>
                                </ItemTemplate>

                                <FooterTemplate>
                                </table>
                                </FooterTemplate>
                        </asp:Repeater>
                    </td>
    	        </tr>
                    <tr>
                    	<td height="20px" class="title">费用详情</td>
                    </tr>
    	        <tr>
    		        <td><a name="cx1" id="A3"/> 
                    <asp:Label ID="EditorFYXQ" runat="server"  />
                    </td>
    	        </tr>
                    <tr>
                    	<td height="20px" class="title">注意事项</td>
                    </tr>
    	        <tr>
    		        <td><a name="cx1" id="A4"/><asp:Label ID="EditorZYSX" runat="server"  /></td>
    	        </tr>
            </table>

        </td>
	</tr>
</table>

    
</asp:Content>
